package com.decoration.basic.entity;

public class JsonResult {
	/**
	 * 返回状态码表示
	 */
	// 登陆成功
	public static final int SUCCESS_LOGIN = 1000;
	// 账号未登录 -- 跳转登录页面
	public static final int FAILED_UNLGIN = 1001;
	// 账号没有权限 -- 返回查询为空
	public static final int FAILED_UNPERMISSION = 1002;
	// 账号已在其他地方登陆 -- 跳转登录页面
	public static final int FAILED_OTHER_LGIN = 1003;
	// 账号异常 -- 跳转登录页面
	public static final int FAILED_ACCOUNT_ABNORMAL = 1004;
	// 业务执行异常
	public static final int FAILED_PROJECT_ERROR = 1005;

	// 功能数据请求成功
	public static final int SUCCESS_CODE = 0;
	// 功能数据请求失败
	public static final int FAILED_CODE = -1;

//返回码
	private int code;
//返回消息
	private String msg;
//返回数量
	private Integer count;
//返回对象内容
	private Object data;
//返回状态
//    private Integer status;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	/*
	 * public Integer getStatus() { return status; }
	 * 
	 * public void setStatus(Integer status) { this.status = status; }
	 */
}
